# import csv
# import logging
#
# import yagmail
#
#
# def log_set():
#     logging.basicConfig(level=logging.DEBUG,format='%(levelname)s_%(pathname)s_%(filename)s',handlers=[
#         logging.StreamHandler(),
#         logging.FileHandler('log.txt')
#     ])
# def send_mail(a):
#     mail=yagmail.SMTP(user='1414400834@qq.com',password='vlpvanctvfmmjjda',host='smtp.qq.com')
#     mail.send(to='1414400834@qq.com',subject='测试报告',contents='广东',attachments=a)
# def load_csv_data(a):
#     with open(a,newline='',encoding='utf-8') as csvf:
#         reader=csv.reader(csvf)
#         next(reader)#跳过表图
#         return [row for row in reader ]
import logging
import yagmail
def log_set():
    logging.basicConfig(level=logging.DEBUG,format='%(module)s_%(module)s_%(lineno)d',handlers=[
        logging.StreamHandler(),
        logging.Formatter('log.txt')
    ])
def send_mail(a):
    mail=yagmail.SMTP(user='1414400834@qq.com',password='vlpvanctvfmmjjda',host='smtp.qq.com')
    mail.send(to='1414400834@qq.com',subject='测试报告',contents='返回',attachments=a)